package com.web.expspringboot.service;


import com.web.expspringboot.dto.Contact;
import com.web.expspringboot.entity.ProductSt;

import java.util.List;

public interface PurchaseService {

    //-3购买自己的商品 -2已被购买 -1未知错误 0成功
    int addNewPurchase(long productId, long customerId);

    List<ProductSt> getPurchaseProducts();

    //删除购买记录
    boolean deletePurchase(long productId);

    Contact getContact(long productId);
}
